package com.novax.ex.activity.open.api.inner;

import com.novax.ex.activity.open.model.query.TaskEtRewardsQuery;
import com.novax.ex.activity.open.model.response.task.TaskEtRewardsResponse;
import com.novax.ex.common.results.ReturnResult;
import com.novax.ex.common.util.PageUtil;
import io.swagger.v3.oas.annotations.Operation;
import io.swagger.v3.oas.annotations.tags.Tag;
import org.springdoc.core.annotations.ParameterObject;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestHeader;
import org.springframework.web.bind.annotation.RequestParam;

import jakarta.servlet.http.HttpServletRequest;
import java.math.BigDecimal;
import java.util.Map;

/**
 * @Description 后管 新手引导 用户获取ET奖励
 * @Author ChenXi
 * @Date 2023/06/25/10:18
 */

@Tag(name = "后台-新手引导-用户获取ET奖励", description = "后台-新手引导-用户获取ET奖励")
@FeignClient(url = "${remote.activity-service.endpoint}", name = "TaskEtRewardsApi", contextId = "TaskEtRewardsApi")
public interface TaskEtRewardsApi {

    @Operation(summary = "查询资产时查询活动冻结资产", hidden = true)
    @GetMapping(value = "/v3/private/task/center/frozen")
    ReturnResult<Map<String, BigDecimal>> findFrozen(@RequestParam(value = "userId") Long userId);


    @Operation(summary = "分页查询")
    @GetMapping(value = "/v3/private/task/center/page")
    ReturnResult<PageUtil<TaskEtRewardsResponse>> findPage(@RequestHeader("language") String language,
                                                           @ParameterObject TaskEtRewardsQuery query);

    @Operation(summary = "汇总")
    @GetMapping("/v3/private/task/center/total")
    ReturnResult<TaskEtRewardsResponse> total(@RequestHeader("language") String language,
                                              @ParameterObject TaskEtRewardsQuery query);

}
